package main

import (
	"gitee.com/kmyss/gf-ex/yslog"
	"gitee.com/kmyss/gf-ex/ystcp"
)

func main() {
	server := ystcp.InstanceTLS()
	server.Run()
	
	for {
		yslog.Print("等待数据!")
		data := <-server.GetRecCh()
		yslog.Print(string(data.Data))
		yslog.Print("已接收数据!")
		server.GetSendCh() <- data
	}
}
